﻿using Inovout;
using Inovout.Data.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KuaJing.Memberships.Domain
{
    public partial class Membership : DataObject
    {
        public Membership()
        {
        }

        [Required(ErrorMessage = "名称不可为空")]
        [Alias("名称")]
        public virtual string Name { get; set; }

        private ISet<Actor> actors;
        public virtual ISet<Actor> Actors
        {
            get
            {
                if (actors == null)
                {
                    actors = new HashSet<Actor>();
                }
                return actors;
            }
            set { actors = value; }
        }
    }
}
